package com.hkyl.hospital.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.PrimitiveIterator;

@Data
public class Hospitalized implements Serializable {
    private Integer hospitalizedId;

    private Integer patientId;

    private Integer sickroomId;

    private Date endDate;

    private Date beginDate;

    private Integer deptId;

    private Integer doctor;

    private String remark;

    private String linkName;

    private String linkPhone;

    private Integer status;

    private Integer handler;

    private Dept dept;
    private Patient patient;

    private Sickroom sickroom;
    private Integer readed;
    private List<Sickroom> sickrooms;
    private List<Dept> depts;
    private User user;
    private String avg2;
    private List<User> users;

    private String avg3;

    private Sickroom sickroom;

    private List<Sickroom> sickrooms;

    private List<Dept> depts;

    private static final long serialVersionUID = 1L;

    public Integer getHospitalizedId() {
        return hospitalizedId;
    }

    public void setHospitalizedId(Integer hospitalizedId) {
        this.hospitalizedId = hospitalizedId;
    }

    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Integer getSickroomId() {
        return sickroomId;
    }

    public void setSickroomId(Integer sickroomId) {
        this.sickroomId = sickroomId;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public Integer getDoctor() {
        return doctor;
    }

    public void setDoctor(Integer doctor) {
        this.doctor = doctor;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getLinkName() {
        return linkName;
    }

    public void setLinkName(String linkName) {
        this.linkName = linkName == null ? null : linkName.trim();
    }

    public String getLinkPhone() {
        return linkPhone;
    }

    public void setLinkPhone(String linkPhone) {
        this.linkPhone = linkPhone == null ? null : linkPhone.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getHandler() {
        return handler;
    }

    public void setHandler(Integer handler) {
        this.handler = handler;
    }

    public Integer getReaded() {
        return readed;
    }

    public void setReaded(Integer readed) {
        this.readed = readed;
    }

    public String getAvg2() {
        return avg2;
    }

    public void setAvg2(String avg2) {
        this.avg2 = avg2 == null ? null : avg2.trim();
    }

    public String getAvg3() {
        return avg3;
    }

    public void setAvg3(String avg3) {
        this.avg3 = avg3 == null ? null : avg3.trim();
    }
}